home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCSSMediaRule.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCSSMediaRule.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCSSMediaRule_h__
  6. #define __gen_nsIDOMCSSMediaRule_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMCSSRule_h__
  10. #include "nsIDOMCSSRule.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCSSMediaRule */
  19. #define NS_IDOMCSSMEDIARULE_IID_STR "a6cf90bc-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMCSSMEDIARULE_IID \
  22.   {0xa6cf90bc, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMCSSMediaRule : public nsIDOMCSSRule {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSMEDIARULE_IID)
  29.  
  30.   /* readonly attribute nsIDOMMediaList media; */
  31.   NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) = 0;
  32.  
  33.   /* readonly attribute nsIDOMCSSRuleList cssRules; */
  34.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
  35.  
  36.   /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  37.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
  38.  
  39.   /* void deleteRule (in unsigned long index)  raises (DOMException); */
  40.   NS_IMETHOD DeleteRule(PRUint32 index) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMCSSMEDIARULE \
  46.   NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia); \
  47.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
  48.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
  49.   NS_IMETHOD DeleteRule(PRUint32 index); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMCSSMEDIARULE(_to) \
  53.   NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return _to GetMedia(aMedia); } \
  54.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
  55.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
  56.   NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMCSSMEDIARULE(_to) \
  60.   NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
  61.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
  62.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
  63.   NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMCSSMediaRule : public nsIDOMCSSMediaRule
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMCSSMEDIARULE
  74.  
  75.   nsDOMCSSMediaRule();
  76.  
  77. private:
  78.   ~nsDOMCSSMediaRule();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMCSSMediaRule, nsIDOMCSSMediaRule)
  86.  
  87. nsDOMCSSMediaRule::nsDOMCSSMediaRule()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMCSSMediaRule::~nsDOMCSSMediaRule()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* readonly attribute nsIDOMMediaList media; */
  98. NS_IMETHODIMP nsDOMCSSMediaRule::GetMedia(nsIDOMMediaList * *aMedia)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  104. NS_IMETHODIMP nsDOMCSSMediaRule::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  110. NS_IMETHODIMP nsDOMCSSMediaRule::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* void deleteRule (in unsigned long index)  raises (DOMException); */
  116. NS_IMETHODIMP nsDOMCSSMediaRule::DeleteRule(PRUint32 index)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsIDOMCSSMediaRule_h__ */
  126.